package com.champ.al;

import com.champ.al.bean.Person;

public class QuickSort {
    public void test(Person a,Person b) {
        if (a.getAge()!=b.getAge()) {
            int temp = a.getAge();
            a.setAge(b.getAge());
            b.setAge(temp);
        }
        if (!a.getName().equals(b.getName())){
            String temp = a.getName();
            a.setName(b.getName());
            b.setName(temp);
        }
    }
}
